import java.io.IOException;
import java.net.SocketException;
import java.util.HashMap;
import java.util.HashSet;

public class Updserver extends sever{

    HashMap<String,String> hash = new HashMap<>();

    public Updserver(int port) throws SocketException {
        super(port);
        hash.put("小狗","dog");

    }

    @Override
    public String process(String request) {
        return hash.getOrDefault(request,"没有找到");
    }

    public static void main(String[] args) throws IOException {
        Updserver updserver = new Updserver(9090);
        updserver.start();
    }
}